<%=error_messages_for :photo%>
<%form_for :photo,:html=>{:multipart=>true} do |f|%>
  <%=f.file_field 'uploaded_data'%><br/>
  <%=f.submit '上传图像'%>
<%end%>